<?php 
/**
* 登录控制器
*/
class LoginController extends Controller
{
	
	public function Index()
	{
		$res = D('stu')->getTopStu();

		// var_dump($res);exit;

		$this->assgin('res',$res);

		$this->display();
	}

	public function Checklogin()
	{
		$this->display();
	}
	//生成验证码
	public function Code()
	{
		$config =    array(
		    'fontSize'    =>    40,    // 验证码字体大小
		    'length'      =>    3,     // 验证码位数
		    'useNoise'    =>    true, // 关闭验证码杂点
		);

		$Verify = new Verify($config);

		$Verify->entry();
	}
}













 ?>